package com.intretech.umsin.demo.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.intretech.umsin.datasource.codemapping.annotations.CodeMappingConfig;
import com.intretech.umsin.demo.entity.UserEntity;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @version V1.0
 * @ClassName: OrderExcel
 * @Description: OrderExcel 服务实现
 * @author: 李启联
 * @date: 2022-5-27 17:10
 * @Copyright: Copyright (c) 2022
 */
public class OrderExcel implements Serializable {

    // 主键id

    @ExcelProperty(value = "主键id")
    private String id;

    // 订单编码

    @ExcelProperty(value = "订单编码")
    private String orderNo;

    // 客户ID

    @ExcelProperty(value = "客户ID")
    private String customerId;

    // 收货人ID

    @ExcelProperty(value = "收货人ID")
    private String receiverId;

    // 订单状态

    @ExcelProperty(value = "订单状态")
    private Integer orderStatus;

    // 版本号

    @ExcelProperty(value = "版本号")
    private Integer version;

    // 租户ID

    @ExcelProperty(value = "租户ID")
    private String tenantId;



    @ExcelProperty(value = "创建人")
    private String createName;



    // 修改人

    @ExcelProperty(value = "修改人")
    private String modifier;

    @CodeMappingConfig(fieldCodeProperty = "modifier",targetClass = UserEntity.class,targetClassKeyProperty = "id",targetClassFieldProperty = "name")
    private String modifierName;


    // 创建时间

    @ExcelProperty(value = "创建时间")
    private java.time.LocalDateTime createTime;



    @ExcelProperty(value = "修改时间")
    private java.time.LocalDateTime modifyTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    public String getReceiverId() {
        return receiverId;
    }

    public void setReceiverId(String receiverId) {
        this.receiverId = receiverId;
    }

    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public String getModifier() {
        return modifier;
    }

    public void setModifier(String modifier) {
        this.modifier = modifier;
    }

    public String getModifierName() {
        return modifierName;
    }

    public void setModifierName(String modifierName) {
        this.modifierName = modifierName;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(LocalDateTime modifyTime) {
        this.modifyTime = modifyTime;
    }
}
